using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using OpenTK.Math;
using System.Drawing;

namespace Dogfight2008.Common.Tests
{
  [TestFixture]
  public class ColoredPolygonMeshFixture
  {
    [Test]
    public void Construct()
    {
      List<ColoredPolygon> polygons = new List<ColoredPolygon>();
      ColoredPolygonMesh mesh = new ColoredPolygonMesh(polygons);
    }

    [Test]
    public void AccessPolygons()
    {
      FixedList<ColoredPolygon> pols = new FixedList<ColoredPolygon>(
        new ColoredPolygon(Color.Black, new Vector3(0, 0, 0)));
      ColoredPolygonMesh mesh = new ColoredPolygonMesh(pols);
      Assert.AreEqual(mesh.Polygons, pols);
    }
  }
}
